package com.elves.auth.entity.material;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface MaterialTypeJpa extends JpaRepository<MaterialType, Integer> {


    // 根据名称查找MaterialType实体
     List<MaterialType> findByName(String name);

}
